home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Utilities / Winter Shell 1.0d2 / Source / Libraries / AlertLib / AlertLib.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-10  |  1.3 KB  |  32 lines  |  [TEXT/KAHL]

  1. #pragma once
  2.  
  3. #include "DialogModalLib.h"
  4.  
  5. /* Pass this as the iconid parameter to AlertGeneric so that no icon
  6.     will be drawn. */
  7. #define ALERT_NO_ICON            (-1)        /* don't draw an icon */
  8.  
  9. /* flags for use of Notification Manager when displaying alert in background */
  10. #define ALERT_NOTIFY_NONE        (0)        /* no notification */
  11. #define ALERT_NOTIFY_MARK        (1<<0)    /* mark next to application's name */
  12. #define ALERT_NOTIFY_ICON        (1<<1)    /* icon in Apple menu */
  13. #define ALERT_NOTIFY_SOUND        (1<<2)    /* play sound */
  14. #define ALERT_NOTIFY_ALERT        (1<<3)    /* notification alert */
  15.  
  16. /* background notification options for Notification Manager */
  17. typedef struct {
  18.     short flags;    /* flags (see values above) */
  19.     short sicn;        /* ID of a 'SICN' resource */
  20.     short sound;    /* ID of a 'snd ' resource, or -1 for system beep */
  21.     short string;    /* ID of a 'STR ' resource */
  22.     short mark;        /* mark flag, either 1 or 0 for an application */
  23. } AlertOptionsType, *AlertOptionsPtr, **AlertOptionsHandle;
  24.  
  25. void AlertOptionsSet(const AlertOptionsType *options);
  26. Boolean AlertFilter(DialogPtr dlg, EventRecord *event, short *item, void *data);
  27. short AlertCustom(short id, short iconid, DlgModalFilterType filter,
  28.     void *data, short nstrings, ...);
  29. short    AlertStop(short id, CStr255 str);
  30. short    AlertNote(short id, CStr255 str);
  31. short    AlertCaution(short id, CStr255 str);
  32.